<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script>
		<!--
		var count=0;
		var country=new Array('America','Greece','Britan','Canda','China','Egypt');
		for(var i=0;i<country.length;i++){
			console.log(country[i]+"\t");
			if((country[i].indexOf('a')!=-1)||(country[i].indexOf('A')!=-1)){
				count++;
			}
			
		}
		console.log("共有"+count+"个字符中包含a或A");
		-->
		</script>
	</head>
	<body>
		<p>在以下字符中：</p>
		<p>America</p>
		<p>Greece</p>
		<p>Britan</p>
		<p>Canda</p>
		<p>China</p>
		<p>Egypt</p>
		<p>共有4个字符中包含	a或A</p>
	</body>
</html>
